﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Left.aspx.cs" Inherits="Portal.Left" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="CSS/style.css" rel="stylesheet" rev="stylesheet" />
    <link href="CSS/global.css" rel="stylesheet" rev="stylesheet" />
    <script src="/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table>
            <tr>
                <td class="left" id="tdMenuShow">
                    <div id="menu">
                        <strong>功能菜单</strong><span><a href="#" onclick="CheckVisiableStatus(0)"><img src="images/LeftIcon.jpg"
                            title="隐藏菜单" /></a></span></div>
                    <asp:TreeView ID="tvMenuInfo" runat="server" NodeIndent="2">
                        <HoverNodeStyle Font-Underline="False" />
                        <NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" HorizontalPadding="5px"
                            NodeSpacing="0px" VerticalPadding="0px" />
                        <ParentNodeStyle Font-Bold="True" ForeColor="#5555DD" />
                        <SelectedNodeStyle Font-Underline="True" HorizontalPadding="0px" VerticalPadding="0px" />
                    </asp:TreeView>
                </td>
                <td width="7" align="center" valign="top" id="tdMenuHide" class="left" style="display: none">
                    <div id="Div1">
                        <span><a href="#" onclick="CheckVisiableStatus(1)">
                            <img src="images/LeftIcon1.jpg" title="展开菜单" /></a></span></div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
<script type="text/javascript">
    function CheckVisiableStatus(status) {
        if (status == 1) {
            $("#tdMenuShow").show();
            $("#tdMenuHide").hide();
            window.parent.frames.frmcontent.cols = "14%,*";
        } else if (status == 0) {
            $("#tdMenuShow").hide();
            $("#tdMenuHide").show();
            window.parent.frames.frmcontent.cols = "30,*";
        }
    }
    function GetSelectedNodeValue(url) {
        if (url != null || url != "") {
            window.parent.frames["frmContentInfo"].location.href = url;
        }
    }
</script>
